package com.gmcc.docmanager.download;

import java.io.InputStream;

import org.apache.http.HttpResponse;

import com.gmcc.docmanager.util.loader.UrlLoaderParser;

import android.util.Log;

public class ReportParser extends UrlLoaderParser {
	@Override
	public void doParse(String url, HttpResponse httpresp, InputStream is,
			String postData) {
		if (is == null || httpresp == null || httpresp.getStatusLine() == null) {
			Log.e(DownloadService.LOG_TAG,
					"doParse error InputStream or HttpResponse is null",
					new NullPointerException());
			return;
		}
		int responseCode = httpresp.getStatusLine().getStatusCode();
		Log.i(DownloadService.LOG_TAG, "ReportParser responseCode = "
				+ responseCode);
		if (responseCode == 200 || responseCode == 206) {
			// AspLog.i(DownloadService.LOG_TAG, "Report Success");
		}
	}
}
